package server.socket.handler;

import server.socket.bean.EServer;
import server.socket.bean.ESocket;

public abstract class ClientHandler {
    protected EServer server;
    protected ESocket client;
    protected InfoHandler infoHandler;

    public ClientHandler(EServer server, ESocket client) {
        this.server = server;
        this.client = client;
    }

    public void setInfoHandler(InfoHandler infoHandler) {
        this.infoHandler = infoHandler;
    }

    public void start() {
        update();
    }

    public abstract void update();
}
